package com.fenghongzhang.a1811;

import android.content.Context;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Interceptor;
import com.alibaba.android.arouter.facade.callback.InterceptorCallback;
import com.alibaba.android.arouter.facade.template.IInterceptor;

@Interceptor(priority = 3,name = "登录拦截器")
public class InterceptTest implements IInterceptor {

    @Override
    public void process(Postcard postcard, InterceptorCallback callback) {
        //需要2选1
        callback.onContinue(postcard);
//        callback.onInterrupt(new RuntimeException("哈哈,不走了"));
    }


    @Override
    public void init(Context context) {
        //只会执行一次.
    }
}
